<template>
  <div>
    <button @click="add">++</button>
  </div>
</template>

<script>
import { useStore } from 'vuex'
export default {
  setup() {
    let store = useStore()
    const add = () => {
      console.log(8888)
      // store.commit('add', 5)
      store.dispatch('add', 3)
    }
    return {
      add
    }
  }
}
</script>

<style lang="scss" scoped>
</style>